<?php
/**
 * ExtPagingToolbar class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtPagingToolbar extends ExtPagingToolbarBase
{
    /**
     * Gets the value of ExtJS afterPageText property
     * @return String 
     */
    public function getAfterPageText()
    {
    	return $this->getConfig("afterpagetext");
    }

    /**
     * Sets the value of ExtJS afterPageText property
     * @param String $value 
     */
    public function setAfterPageText($value)
    {
    	$this->setConfig("afterpagetext",$value);
    }

    /**
     * Gets the value of ExtJS beforePageText property
     * @return String 
     */
    public function getBeforePageText()
    {
    	return $this->getConfig("beforepagetext");
    }

    /**
     * Sets the value of ExtJS beforePageText property
     * @param String $value 
     */
    public function setBeforePageText($value)
    {
    	$this->setConfig("beforepagetext",$value);
    }

    /**
     * Gets the value of ExtJS displayInfo property
     * @return Boolean 
     */
    public function getDisplayInfo()
    {
    	return $this->getConfig("displayinfo");
    }

    /**
     * Sets the value of ExtJS displayInfo property
     * @param Boolean $value 
     */
    public function setDisplayInfo($value)
    {
    	$this->setConfig("displayinfo",$value);
    }

    /**
     * Gets the value of ExtJS displayMsg property
     * @return String 
     */
    public function getDisplayMsg()
    {
    	return $this->getConfig("displaymsg");
    }

    /**
     * Sets the value of ExtJS displayMsg property
     * @param String $value 
     */
    public function setDisplayMsg($value)
    {
    	$this->setConfig("displaymsg",$value);
    }

    /**
     * Gets the value of ExtJS emptyMsg property
     * @return String 
     */
    public function getEmptyMsg()
    {
    	return $this->getConfig("emptymsg");
    }

    /**
     * Sets the value of ExtJS emptyMsg property
     * @param String $value 
     */
    public function setEmptyMsg($value)
    {
    	$this->setConfig("emptymsg",$value);
    }

    /**
     * Gets the value of ExtJS firstText property
     * @return String 
     */
    public function getFirstText()
    {
    	return $this->getConfig("firsttext");
    }

    /**
     * Sets the value of ExtJS firstText property
     * @param String $value 
     */
    public function setFirstText($value)
    {
    	$this->setConfig("firsttext",$value);
    }

    /**
     * Gets the value of ExtJS lastText property
     * @return String 
     */
    public function getLastText()
    {
    	return $this->getConfig("lasttext");
    }

    /**
     * Sets the value of ExtJS lastText property
     * @param String $value 
     */
    public function setLastText($value)
    {
    	$this->setConfig("lasttext",$value);
    }

    /**
     * Gets the value of ExtJS nextText property
     * @return String 
     */
    public function getNextText()
    {
    	return $this->getConfig("nexttext");
    }

    /**
     * Sets the value of ExtJS nextText property
     * @param String $value 
     */
    public function setNextText($value)
    {
    	$this->setConfig("nexttext",$value);
    }

    /**
     * Gets the value of ExtJS pageSize property
     * @return Number 
     */
    public function getPageSize()
    {
    	return $this->getConfig("pagesize");
    }

    /**
     * Sets the value of ExtJS pageSize property
     * @param Number $value 
     */
    public function setPageSize($value)
    {
    	$this->setConfig("pagesize",$value);
    }

    /**
     * Gets the value of ExtJS prependButtons property
     * @return Boolean 
     */
    public function getPrependButtons()
    {
    	return $this->getConfig("prependbuttons");
    }

    /**
     * Sets the value of ExtJS prependButtons property
     * @param Boolean $value 
     */
    public function setPrependButtons($value)
    {
    	$this->setConfig("prependbuttons",$value);
    }

    /**
     * Gets the value of ExtJS prevText property
     * @return String 
     */
    public function getPrevText()
    {
    	return $this->getConfig("prevtext");
    }

    /**
     * Sets the value of ExtJS prevText property
     * @param String $value 
     */
    public function setPrevText($value)
    {
    	$this->setConfig("prevtext",$value);
    }

    /**
     * Gets the value of ExtJS refreshText property
     * @return String 
     */
    public function getRefreshText()
    {
    	return $this->getConfig("refreshtext");
    }

    /**
     * Sets the value of ExtJS refreshText property
     * @param String $value 
     */
    public function setRefreshText($value)
    {
    	$this->setConfig("refreshtext",$value);
    }

    /**
     * Gets the value of ExtJS store property
     * @return Ext.data.Store 
     */
    public function getStore()
    {
    	return $this->getConfig("store");
    }

    /**
     * Sets the value of ExtJS store property
     * @param Ext.data.Store $value 
     */
    public function setStore($value)
    {
    	$this->setConfig("store",$value);
    }

    /**
     * @description maps to the changePage function in Ext.PagingToolbar
     * @param sender String -
     * @param page Integer - 
     */
    public static function changePage_OnAjax($page,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('changePage(%s)',
    		array($page),
    			 $sender);
    }

    /**
     * @description maps to the doRefresh function in Ext.PagingToolbar
     * @param sender String -
     */
    public static function doRefresh_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('doRefresh()',
    		array(),
    			 $sender);
    }

    /**
     * @description maps to the moveFirst function in Ext.PagingToolbar
     * @param sender String -
     */
    public static function moveFirst_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('moveFirst()',
    		array(),
    			 $sender);
    }

    /**
     * @description maps to the moveLast function in Ext.PagingToolbar
     * @param sender String -
     */
    public static function moveLast_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('moveLast()',
    		array(),
    			 $sender);
    }

    /**
     * @description maps to the moveNext function in Ext.PagingToolbar
     * @param sender String -
     */
    public static function moveNext_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('moveNext()',
    		array(),
    			 $sender);
    }

    /**
     * @description maps to the movePrevious function in Ext.PagingToolbar
     * @param sender String -
     */
    public static function movePrevious_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('movePrevious()',
    		array(),
    			 $sender);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'afterpagetext' => 'afterPageText',
            'beforepagetext' => 'beforePageText',
            'displayinfo' => 'displayInfo',
            'displaymsg' => 'displayMsg',
            'emptymsg' => 'emptyMsg',
            'firsttext' => 'firstText',
            'lasttext' => 'lastText',
            'nexttext' => 'nextText',
            'pagesize' => 'pageSize',
            'prependbuttons' => 'prependButtons',
            'prevtext' => 'prevText',
            'refreshtext' => 'refreshText'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforechange' => array('sender','params'),
            'change' => array('sender','pageData')
        ));


        $this->setXType('paging');
        $this->setXClass('Ext.PagingToolbar');
    }    
}
?>